package com.example.w.dao;

import com.example.w.common.pojo.Role;
import com.example.w.common.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    void registerUser(User target);

    User selectByUsername(String username);

    User selectRolesByUsername(String username);
}